package lib.hj.com.commonlib.bean;

/**
 * author:dyz
 * 基础数据Bean
 * Created by Cola on 15/10/8.
 */

public class BaseBean {

    private String id;
    public String code;
    public String url;
    public String parameter;
    public String result;
    public  int success;
    public  int SUCCESS;

    public long getKey() {
        return key;
    }

    public void setKey(long key) {
        this.key = key;
    }

    public  long key;

    public int getSUCCESS() {
        return SUCCESS;
    }

    public void setSUCCESS(int SUCCESS) {
        this.SUCCESS = SUCCESS;
    }

    public  ExceptionBean EXCEPTION;

    public ExceptionBean getEXCEPTION() {
        return EXCEPTION;
    }

    public void setEXCEPTION(ExceptionBean EXCEPTION) {
        this.EXCEPTION = EXCEPTION;
    }

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "{" +
                "\"id\":"+ "\"" + id + "\"" +
                ", \"code\":" + "\""+ code + "\"" +
                ", \"url\":"+ "\"" + url +"\"" +
                ", \"parameter\":" + "\""+ parameter + "\"" +
                ", \"result\":" +  result  +
                ", \"success\":" + "\""+ success + "\""+
                ", \"SUCCESS\":" + "\""+ SUCCESS + "\""+
                ", \"key\":"  + "\""+key + "\""+
                ", \"EXCEPTION\":" + EXCEPTION +
                '}';
    }
//    转义后的结果 id=id\,code=code\,url=url\,
}
